package com.vast.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.Data;

@ApiModel(value="com.vast.admin.entity.ContractDetailSigner")
@Data
@TableName(value = "contract_detail_signer")
public class ContractDetailSigner {
     @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="null")
    private Long id;

    @TableField(value = "contract_id")
    @ApiModelProperty(value="null")
    private Long contractId;

    @TableField(value = "contract_detail_id")
    @ApiModelProperty(value="null")
    private Long contractDetailId;

    /**
     * 签署方 债务人 债权人 共同债务人等
     */
    @TableField(value = "part_name")
    @ApiModelProperty(value="签署方 债务人 债权人 共同债务人等")
    private String partName;

    /**
     * 1 企业 2个人 3第三方/丙方
     */
    @TableField(value = "part_type")
    @ApiModelProperty(value="1 企业 2个人 3第三方/丙方")
    private Integer partType;

    /**
     * 公司id/客户id
     */
    @TableField(value = "signer_id")
    @ApiModelProperty(value="公司id/客户id")
    private Long signerId;

    @TableField(value = "signer_index")
    @ApiModelProperty(value="前端字段")
    private Integer signerIndex;

    /**
     * 签署状态 0未签署 1已签署
     */
    @TableField(value = "sign_status")
    @ApiModelProperty(value="签署状态 0未签署 1已签署")
    private Integer signStatus;

    /**
     * 签署时间
     */
    @TableField(value = "sign_time")
    @ApiModelProperty(value="签署时间")
    private Date signTime;

    public static final String COL_CONTRACT_ID = "contract_id";

    public static final String COL_CONTRACT_DETAIL_ID = "contract_detail_id";

    public static final String COL_PART_NAME = "part_name";

    public static final String COL_PART_TYPE = "part_type";

    public static final String COL_SIGNER_ID = "signer_id";

    public static final String COL_SIGN_STATUS = "sign_status";

    public static final String COL_SIGN_TIME = "sign_time";
}